package TeacherLegendAPI.Integer;

public class IntegerDemo {
    public static void main(String[] args) {
        int a=123;

        Integer i1=Integer.valueOf(a);
        Integer i2=Integer.valueOf(a);

        System.out.println(i1==i2);
        System.out.println(i1.equals(i2));
        System.out.println(i1);
        System.out.println(i2);

        int i=i1.intValue();
        double d=i2.doubleValue();
        System.out.println("i="+i+",d="+d);
    }
}
